<?php
namespace App\Models\Store;
use App\Libs\Base\Constant;
class Store extends \App\Libs\Base\BaseModel
{
    protected $__TABLE__ = 't_paile_store';
	
	/**
	*	跳过检测了
	*/
	public function beforeValidation()
	{
	  self::skipValidation(['store_num','store_img','store_tel','store_sales'] , $this );
	}

    public static function getStoreInfo($salerId)
    {
        $matchedStore = self::find([
            'conditions' => 'id = ?1',
            'columns' => 'store_sadd,store_address,longitude,latitude',
            'bind' => [1 => $salerId],
        ]);
        return $matchedStore;
    }
	
}
